from satori import Text, At, Sharp, Link

a = Text("1234<foo>")
role = At.role_("admin")
chl = Sharp("abcd")
link = Link("www.baidu.com")
link1 = Link("github.com/RF-Tar-Railt/satori-python")(
    "satori-python"
)
print(a)
print(role)
print(chl)
print(link)
print(link1)

from satori import Image, Video

image = Image.of(url="https://example.com/image.png", name="image.png")
print(image)
print(Video.unpack({"src": "https://example.com/video.mp4", "title": "video.mp4", "width": 123, "height": 456, "poster": "https://example.com/poster.png"}))

from satori import Bold, Italic, Underline, Paragraph

text = Bold(
    "hello",
    Italic("world,"),
    Underline()(
        "Satori!"
    ),
    Paragraph("This is a paragraph.")
)
print(text)

from satori import Message, Author

message = Message(forward=True)(
    Message(id="123456789"),
    Message(id="987654321"),
    Message(
        content=[
            Author(id="123456789"),
            "Hello, "
        ]
    ),
    Message()(
        Author(id="123456789"),
        "World!"
    )
)
print(message)